package com.ruoyi.orders.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.orders.mapper.CheEvaluateMapper;
import com.ruoyi.orders.domain.CheEvaluate;
import com.ruoyi.orders.service.ICheEvaluateService;

/**
 * 订单评价Service业务层处理
 *
 * @author ruoyi
 * @date 2025-01-02
 */
@Service
public class CheEvaluateServiceImpl implements ICheEvaluateService {
    @Autowired
    private CheEvaluateMapper cheEvaluateMapper;

    /**
     * 查询订单评价
     *
     * @param id 订单评价主键
     * @return 订单评价
     */
    @Override
    public CheEvaluate selectCheEvaluateById(Long id) {
        return cheEvaluateMapper.selectCheEvaluateById(id);
    }

    /**
     * 查询订单评价列表
     *
     * @param cheEvaluate 订单评价
     * @return 订单评价
     */
    @Override
    public List<CheEvaluate> selectCheEvaluateList(CheEvaluate cheEvaluate) {
        return cheEvaluateMapper.selectCheEvaluateList(cheEvaluate);
    }
    /**
     * 新增订单评价
     *
     * @param cheEvaluate 订单评价
     * @return 结果
     */
    @Override
    public int insertCheEvaluate(CheEvaluate cheEvaluate) {
        return cheEvaluateMapper.insertCheEvaluate(cheEvaluate);
    }

    /**
     * 修改订单评价
     *
     * @param cheEvaluate 订单评价
     * @return 结果
     */
    @Override
    public int updateCheEvaluate(CheEvaluate cheEvaluate) {
        return cheEvaluateMapper.updateCheEvaluate(cheEvaluate);
    }

    /**
     * 批量删除订单评价
     *
     * @param ids 需要删除的订单评价主键
     * @return 结果
     */
    @Override
    public int deleteCheEvaluateByIds(Long[] ids) {
        return cheEvaluateMapper.deleteCheEvaluateByIds(ids);
    }

    /**
     * 删除订单评价信息
     *
     * @param id 订单评价主键
     * @return 结果
     */
    @Override
    public int deleteCheEvaluateById(Long id) {
        return cheEvaluateMapper.deleteCheEvaluateById(id);
    }
}
